package xin.nick.demo;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class RabbitMQConfig1 {
    private final static String QUEUE_NAME = "spring-boot";

    // 声明队列
    @Bean
    public Queue getQueue01() {
        return new Queue(QUEUE_NAME);
//        return QueueBuilder.durable(QUEUE_NAME).build();
    }
}
